
def comm_dy(login_data,expect_result):
    login_data_jg = login_data.json()
    # 断言
    assert expect_result['status_code'] == login_data.status_code
    assert expect_result['success'] == login_data_jg.get('success')
    assert expect_result['code'] == login_data_jg['code']
    assert expect_result['message'] in login_data_jg['message']
